package cn.ivast.recyclerviewtest.adapter;

import android.support.v7.widget.RecyclerView;

import com.bumptech.glide.Glide;

import cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;
import cn.ivast.recyclerviewtest.R;

/**
 * Created by hcs on 2018/11/24.
 */
public class TanTanAdapter extends BGARecyclerViewAdapter<String> {

    public TanTanAdapter(RecyclerView recyclerView) {
        super(recyclerView, R.layout.item_tantan);
    }

    @Override
    protected void fillData(BGAViewHolderHelper helper, int position, String model) {
        if (model != null) {
            Glide.with(mContext).load(model).into(helper.getImageView(R.id.imageView));
        }
    }
}
